/*****************************************************************************
*
*  PROJECT:     SlipStream
*               (Texture Classes)
*  LICENSE:     GNU General Public License v3 - http://www.gnu.org/licenses/gpl.html

*  DEVELOPERS:  Philip Farquharson 	<B00137077@studentmail.uws.ac.uk>
*				John Gray 			<B00145524@studentmail.uws.ac.uk>		
*				Zohaib Bhatti		<B00104280@studentmail.uws.ac.uk>
*				Euan Hislop 		<B00138636@studentmail.uws.ac.uk>
*
*****************************************************************************/

#include "CTexture.h"

CTexture::CTexture ( const char *filename )
{
	m_filename = filename;
	pngInfo info;
	m_ID = pngBind ( m_filename, PNG_NOMIPMAP, PNG_SOLID, &info, GL_REPEAT, GL_LINEAR, GL_LINEAR );
}

CTexture::~CTexture ( void )
{
}

void CTexture::BindTexture ( )
{
	glBindTexture( GL_TEXTURE_2D, m_ID );
}